#ifndef MYEVENTLOOPTHREADPOOL_H
#define MYEVENTLOOPTHREADPOOL_H

#include "MyEventLoop.h"
#include "MyEventLoopThread.h"

class MyEventLoopThreadPool
{
public:
    MyEventLoopThreadPool();
    MyEventLoopThreadPool(const int threadNum);
    ~MyEventLoopThreadPool();

    MyEventLoopThread* getNextThread();


private:
    int _threadNum;
    int _nextID;
    MyEventLoop *_baseLoop;

    std::vector<MyEventLoopThread*> _threads;

};

#endif // MYEVENTLOOPTHREADPOOL_H
